<admintpl file="headerEx"/>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<title>{:L('ADMIN_MAILER_INDEX')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet"/>
<!--ios7-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />

<!--icheck-->
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/red.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/green.css" rel="stylesheet">
</head>
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content">
		<!-- body wrapper start -->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li class="active"><a href="{:U('Admin/mailer/index')}" data-toggle="tab"><i class="fa fa-list-ul"></i> {:L('ADMIN_MAILER_INDEX')}</a></li>
								<!--<li ><a href="{:U('Admin/mailer/active_post')}" data-toggle="tab"> <i class="fa fa-list-ul"></i> {:L('ADMIN_MAILER_ACTIVE')}</a></li>-->
							</ul>
						</header>
						<div class="panel-body">
							<div class=" form">
								<form class="cmxform form-horizontal adminex-form js-ajax-form" id="commentForm" method="post" action="{:U('Admin/mailer/index_post')}"      novalidate="novalidate" enctype="multipart/form-data">

									<fieldset>
										<div class="form-group">
											<label   for="sender" class="control-label col-lg-2" >{:L('SENDER_NAME')}(*)</label>
											<div class="col-lg-10">
												<input type="text" class=" form-control" id="sender" name="sender" value="{$Think.config.SP_MAIL_SENDER}" minlength="1" required="" />
											</div>
										</div>
										<div class="form-group">
											<label   for="address" class="control-label col-lg-2" >{:L('SENDER_EMAIL_ADDRESS')}(*)</label>
											<div class="col-lg-10">
												<input type="text" class=" form-control" id="address"  name="address" value="{$Think.config.SP_MAIL_ADDRESS}" minlength="1" required=""  />
											</div>
										</div>
										<div class="form-group">
											<label  for="smtp" class="control-label col-lg-2" >{:L('SENDER_SMTP_SERVER')}(*)</label>
											<div class="col-lg-10">
												<input type="text" class=" form-control" id="smtp"  name="smtp" value="{$Think.config.SP_MAIL_SMTP}" minlength="1" required=""  />
											</div>
										</div>
										<div class="form-group">
											<label  for="js-smtpsecure" class="control-label col-lg-2" >连接方式</label>
											<div >
												&nbsp;<select name="smtpsecure" id="js-smtpsecure"  class="input-lg"   style="padding: 5px 16px;height: auto">
													<option value="">默认</option>
													<option value="ssl">ssl</option>
													<option value="tls">tls</option>
												</select>
											</div>
										</div>
										<div class="form-group">
											<label  for="smtp_port" class="control-label col-lg-2" >SMTP服务器端口(*)</label>
											<div class="col-lg-10">
												<input type="text" class=" form-control" id="smtp_port"  name="smtp_port" value="{$Think.config.SP_MAIL_SMTP_PORT}" placeholder="默认为25" minlength="1" required=""  />
											</div>
										</div>
										<div class="form-group">
											<label  for="loginname" class="control-label col-lg-2" >{:L('SMTP_MAIL_ADDRESS')}(*)</label>
											<div class="col-lg-10">
												<input type="text" class=" form-control" id="loginname"  name="loginname" value="{$Think.config.SP_MAIL_LOGINNAME}" minlength="1" required=""  />
											</div>
										</div>
										<div class="form-group">
											<label  for="password" class="control-label col-lg-2" >{:L('SMTP_MAIL_PASSWORD')}(*)</label>
											<div class="col-lg-10">
												<input type="password" class=" form-control" id="password"  name="password" value="{$Think.config.SP_MAIL_PASSWORD}" minlength="1" required=""  />
											</div>
										</div>
									</fieldset>
									<div class="form-group">
										<div class="col-md-12 text-center clearfix" style=" width:auto;padding-left: 25%;padding-top: 20px;">
											<button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
											<a class="btn btn-warning" href="javascript:parent.open_iframe_dialog('{:U('mailer/test')}','发送测试邮件',{})">测试邮件</a>
											<a href="javascript:history.back(-1);" class="btn btn-default">返回</a>
										</div>
									</div>
								</form>
							</div>

						</div>
					</section>

				</div>
			</div>
		</div>
		<!--footer section start-->
		<footer>
			<admintpl file="copyright"/>
		</footer>
		<!--footer section end-->
	</div>
	<!-- main content end-->
</section>

<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>

<!--ios7-->
<script src="__PUBLIC__/TciocEx/js/ios-switch/switchery.js" ></script>
<script src="__PUBLIC__/TciocEx/js/ios-switch/ios-init.js" ></script>

<!--icheck -->
<script src="__PUBLIC__/TciocEx/js/iCheck/jquery.icheck.js"></script>
<script src="__PUBLIC__/TciocEx/js/icheck-init.js"></script>
<!--common scripts for all pages-->

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script>
	$(function(){
		$('#js-smtpsecure').val('{$Think.config.SP_MAIL_SECURE}');
	});
</script>
</body>
</html>
